package com.makingTeam;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;

@SpringBootApplication(exclude= DataSourceAutoConfiguration.class)  //如果使用动态数据源切换的代码需要排除
//@SpringBootApplication
@EnableSwagger2WebMvc
@MapperScan(basePackages = {"com.makingTeam.*.mapper"})
@EnableCaching
public class SystemApplication implements WebMvcConfigurer {
    public static void main(String[] args) {
        System.setProperty("spring.devtools.restart.enabled","false");
        SpringApplication.run(SystemApplication.class, args);
    }



}
